package com.cddx.logistics.service.impl;

import com.cddx.logistics.domain.vo.CableStatisticsVo;
import com.cddx.logistics.mapper.CableStatisticsMapper;
import com.cddx.logistics.service.CableStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;

@Service
public class CableStatisticsServiceImpl implements CableStatisticsService {

    @Autowired
    private CableStatisticsMapper cableStatisticsMapper;

    @Override
    public List<CableStatisticsVo> getCableStatisticsByCondition(
            Date startDate, Date endDate, String name
    ) {
        return cableStatisticsMapper.selectCableStatisticsByCondition(
                startDate, endDate, name
        );
    }

    @Override
    public List<String> getAllMaterialNames() {
        return cableStatisticsMapper.selectAllMaterialNames();
    }
}


